From 0fd38e6195a94d201f3167cb3547a80ece7e2f15 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 18 Jul 2007 17:10:16 +0000 Subject: [PATCH] Don't write last field if current field isn't valid in XCSV output. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2905 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index b63ea80bc..83577a218 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -1169,6 +1169,8 @@ xcsv_waypt_pr(const waypoint *wpt) field_map_t *fmp; queue *elem, *tmp; double latitude, longitude; + + buff[0] = '\0'; if ( oldlon < 900 ) { pathdist += radtomiles(gcdist(RAD(oldlat),RAD(oldlon), -- 2.30.2